export default {
  getPowerCounter(state,getters){
    return state.counter * state.counter;
  },

  getAdd(state){
    return function (num) { //参数num就是我们从外部传过来的值
      return state.counter * num;
    }
  }
}
